MsgN("-- mdf_shared.lua loaded")

MDF.MinimumCash = 400
MDF.MaximumCash = 20000

MDF.BuildTime = 4 * 60
MDF.FloodTime = 6 * 60
MDF.EndRoundTime = 35



/*---------------------------------------------------------
   Setup Teams
---------------------------------------------------------*/

TEAM_NORMAL = 1
TEAM_DEAD = 2

--normal team
team.SetUp( TEAM_NORMAL, "Alive", Color (85, 255, 0, 255) )

--dead team
team.SetUp( TEAM_DEAD, "Dead", Color (255, 0, 0, 255) )








--holds the allowed tools we can use
AllowedTools = {
	"ballsocket_adv",
	"material",
	"paint",
	"physprop",
	"wheel",
	"colour",
	"nail",
	"thruster",
	"remover",
	"weld",
	"weld_ez",
	"weld_ez2",
	"rt_buoyancy",
	"noclip"
}


--holds all the allowed props
list.Set("FloodProps", "models/props_c17/FurnitureTable002a.mdl", {
	health = 45,
	cost = 39
})
list.Set("FloodProps", "models/props_c17/gravestone_coffinpiece002a.mdl", {
	health = 30,
	cost = 30
})
list.Set("FloodProps", "models/props_c17/oildrum001.mdl", {
	health = 30,
	cost = 18
})
list.Set("FloodProps", "models/props_c17/shelfunit01a.mdl", {
	health = 90,
	cost = 90
})
list.Set("FloodProps", "models/props_c17/concrete_barrier001a.mdl", {
	health = 75,
	cost = 75
})
list.Set("FloodProps", "models/props_borealis/door_wheel001a.mdl", {
	health = 25,
	cost = 5
})
list.Set("FloodProps", "models/props_c17/display_cooler01a.mdl", {
	health = 131,
	cost = 131
})
list.Set("FloodProps", "models/props_c17/canister_propane01a.mdl", {
	health = 90,
	cost = 70
})
list.Set("FloodProps", "models/props_c17/bench01a.mdl", {
	health = 20,
	cost = 17
})
list.Set("FloodProps", "models/props_c17/FurnitureCouch001a.mdl", {
	health = 300,
	cost = 286
})
list.Set("FloodProps", "models/Combine_Helicopter/helicopter_bomb01.mdl", {
	health = 35,
	cost = 19
})
list.Set("FloodProps", "models/props_c17/FurnitureShelf001a.mdl", {
	health = 399,
	cost = 399
})
list.Set("FloodProps", "models/props_c17/gravestone003a.mdl", {
	health = 30,
	cost = 17
})
list.Set("FloodProps", "models/props_c17/Lockers001a.mdl", {
	health = 400,
	cost = 600
})
list.Set("FloodProps", "models/props_debris/metal_panel02a.mdl", {
	health = 37,
	cost = 30
})
list.Set("FloodProps", "models/props_debris/metal_panel01a.mdl", {
	health = 150,
	cost = 150
})
list.Set("FloodProps", "models/props_c17/canister01a.mdl", {
	health = 60,
	cost = 36
})
list.Set("FloodProps", "models/props_doors/door03_slotted_left.mdl", {
	health = 126,
	cost = 126
})
list.Set("FloodProps", "models/props_docks/dock03_pole01a_256.mdl", {
	health = 465,
	cost = 465
})
list.Set("FloodProps", "models/props_docks/dock01_pole01a_128.mdl", {
	health = 299,
	cost = 299
})
list.Set("FloodProps", "models/props_interiors/BathTub01a.mdl", {
	health = 199,
	cost = 199
})
list.Set("FloodProps", "models/props_interiors/Furniture_Desk01a.mdl", {
	health = 100,
	cost = 86
})
list.Set("FloodProps", "models/props_borealis/mooring_cleat01.mdl", {
	health = 20,
	cost = 13
})
list.Set("FloodProps", "models/props_interiors/Furniture_shelf01a.mdl", {
	health = 251,
	cost = 251
})
list.Set("FloodProps", "models/props_interiors/refrigerator01a.mdl", {
	health = 399,
	cost = 356
})
list.Set("FloodProps", "models/props_interiors/refrigeratorDoor01a.mdl", {
	health = 40,
	cost = 26
})
list.Set("FloodProps", "models/props_interiors/VendingMachineSoda01a.mdl", {
	health = 600,
	cost = 805
})
list.Set("FloodProps", "models/props_interiors/VendingMachineSoda01a_door.mdl", {
	health = 200,
	cost = 200
})
list.Set("FloodProps", "models/props_building_details/Storefront_Template001a_Bars.mdl", {
	health = 20,
	cost = 20
})
list.Set("FloodProps", "models/props_borealis/bluebarrel001.mdl", {
	health = 59,
	cost = 39
})
list.Set("FloodProps", "models/lostcoast/props_wasteland/boat_wooden01a.mdl", {
	health = 300,
	cost = 1000,
	buoyancy = 21
})

--all allowed weapons

--CS:S weapons
list.Set("FloodWeapons", "models/weapons/w_rif_ak47.mdl", {
	weapon = "weapon_ak47",
	ammo = {"smg1", 150},
	cost = 5000,
	tip = "Cost: $5000\nAmmo: 500\nInfo: Spawns with you every round."
})
list.Set("FloodWeapons", "models/weapons/w_pist_deagle.mdl", {
	weapon = "weapon_deagle",
	ammo = {"pistol", 150},
	cost = 1000,
	tip = "Cost: $1000\nAmmo: 500\nInfo: Spawns with you every round."
})
list.Set("FloodWeapons", "models/weapons/w_pist_fiveseven.mdl", {
	weapon = "weapon_fiveseven",
	ammo = {"pistol", 150},
	cost = 1000,
	tip = "Cost: $1000\nAmmo: 500\nInfo: Spawns with you every round."
})
list.Set("FloodWeapons", "models/weapons/w_pist_glock18.mdl", {
	weapon = "weapon_glock",
	ammo = {"pistol", 150},
	cost = 1000,
	tip = "Cost: $1000\nAmmo: 500\nInfo: Spawns with you every round."
})
list.Set("FloodWeapons", "models/weapons/w_rif_m4a1.mdl", {
	weapon = "weapon_m4",
	ammo = {"smg1", 150},
	cost = 5000,
	tip = "Cost: $5000\nAmmo: 500\nInfo: Spawns with you every round."
})
list.Set("FloodWeapons", "models/weapons/w_smg_mac10.mdl", {
	weapon = "weapon_mac10",
	ammo = {"smg1", 150},
	cost = 8000,
	tip = "Cost: $8000\nAmmo: 500\nInfo: Spawns with you every round."
})
list.Set("FloodWeapons", "models/weapons/w_smg_ump45.mdl", {
	weapon = "weapon_mp5",
	ammo = {"smg1", 150},
	cost = 8000,
	tip = "Cost: $8000\nAmmo: 500\nInfo: Spawns with you every round."
})
list.Set("FloodWeapons", "models/weapons/w_mach_m249para.mdl", {
	weapon = "weapon_para",
	ammo = {"smg1", 150},
	cost = 12000,
	tip = "Cost: $12000\nAmmo: 500\nInfo: Spawns with you every round."
})
list.Set("FloodWeapons", "models/weapons/w_shot_xm1014.mdl", {
	weapon = "weapon_pumpshotgun",
	ammo = {"buckshot", 150},
	cost = 12000,
	tip = "Cost: $12000\nAmmo: 500\nInfo: Spawns with you every round."
})
list.Set("FloodWeapons", "models/weapons/w_smg_tmp.mdl", {
	weapon = "weapon_tmp",
	ammo = {"SMG1", 500},
	cost = 120,
	tip = "Name: Tmp\nCost: $12000\nAmmo: 500\nInfo: Spawns with you every round."
})



function SecondsToClock(sSeconds)
	local nSeconds = tonumber(sSeconds)

	if nSeconds == 0 then
		--return nil;
		return "00:00:00";
	else
		nHours = string.format("%02.f", math.floor(nSeconds/3600));
		nMins = string.format("%02.f", math.floor(nSeconds/60 - (nHours*60)));
		nSecs = string.format("%02.f", math.floor(nSeconds - nHours*3600 - nMins *60));
		return nHours..":"..nMins..":"..nSecs
	end
end